package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserWorksOpusItems;
import com.ecoolex.ying.space.entity.UserWorksOpusItemsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserWorksOpusItemsMapper {
    long countByExample(UserWorksOpusItemsExample example);

    int deleteByExample(UserWorksOpusItemsExample example);

    int deleteByPrimaryKey(Integer itemId);

    int insert(UserWorksOpusItems record);

    int insertSelective(@Param("record") UserWorksOpusItems record, @Param("selective") UserWorksOpusItems.Column ... selective);

    UserWorksOpusItems selectOneByExample(UserWorksOpusItemsExample example);

    List<UserWorksOpusItems> selectByExample(UserWorksOpusItemsExample example);

    UserWorksOpusItems selectByPrimaryKey(Integer itemId);

    UserWorksOpusItems selectByPrimaryKeyWithLogicalDelete(@Param("itemId") Integer itemId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserWorksOpusItems record, @Param("example") UserWorksOpusItemsExample example, @Param("selective") UserWorksOpusItems.Column ... selective);

    int updateByExample(@Param("record") UserWorksOpusItems record, @Param("example") UserWorksOpusItemsExample example);

    int updateByPrimaryKeySelective(@Param("record") UserWorksOpusItems record, @Param("selective") UserWorksOpusItems.Column ... selective);

    int updateByPrimaryKey(UserWorksOpusItems record);

    int batchInsert(@Param("list") List<UserWorksOpusItems> list);

    int batchInsertSelective(@Param("list") List<UserWorksOpusItems> list, @Param("selective") UserWorksOpusItems.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserWorksOpusItemsExample example);

    int logicalDeleteByPrimaryKey(Integer itemId);
}